package com.ruoyi.system.domain.WMS;

import cn.hutool.core.date.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.domain.function.ProdOrderDTO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @description: 下发订单至WMS
 * @author: zhengxiong.jiang
 * @createDate: 2023/3/16
 * @version: 1.0
 */
@Data
public class InsManuBillsDTO {
    private String createmanid;
    private String createman;

//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createdate;
    private String createmanname;
    private String editman;
    private Date editdate;
    private String editmanname;
    private int pkid;
    private String gid;
    private String zapdeltag;
    private String factorypkid;
    private String factoryid;
    private String billno;
    private int seq;
    private String serviceid;
    private String servicepkid;
    private String states;
    private String remark;
    private String submitman;
    private String submitdate;
    private String submitmanname;
    private String frozenman;
    private Date frozendate;
    private String frozenmanname;
    private String auditman;
    private String auditdate;
    private String auditmanname;
    private String closeman;
    private Date closedate;
    private String closereason;
    private String closemanname;
    private String wrongfinishman;
    private Date wrongfinishdate;
    private String wrongfinishreason;
    private String wrongfinishmanname;
    private String billtype;
    private String billtypepkid;
    private String productiontype;
    private String materielid;
    private String materielnames;
    private String factorymaterielpkid;
    private String classesid;
    private String classesobj;
    private String metricid;
    private String metricpkid;
    private String metricid2;
    private String metricpkid2;
    private String metricratio;
    private String bomid;
    private String bommainobj;
    private String collectlineid;
    private String collectlinemainobj;
    private int planqty;
    private int releaseqty;
    private int planqty2;
    private String begindate;
    private String enddate;
    private String workshopid;
    private String workshopidobj;
    private String lineid;
    private String mlineobj;
    private String srcbillno;
    private String srcbillpkid;
    private String srcbillpkidofsale;
    private String srcbillseq;
    private String srcbilllinepkidofsale;
    private String srcbillnopkidofpo;
    private String wcid;
    private int finishqty;
    private int stopqty;
    private String stopdate;
    private String stopreason;
    private String batchno;
    private Integer packqty;
    private String stationid;
    private String stationobj;
    private int combox;
    private int apsfalg;
    private int stockinqty;
    private int pooledqty;
    private String rpttype;
    private String freedom1;
    private String freedom2;
    //放任务令
    private String freedom3;
    private String freedom4;
    private String freedom5;
    private String freedom6;
    private String freedom7;
    private String freedom8;
    private String freedom9;
    private String freedom10;
    private String freedom11;
    private String freedom12;
    private String freedom13;
    private String freedom14;
    private String freedom15;
    private String businesstype;
    private String projectid;
    private int apsSerial;
    private String ismanual;
    private String groupid;
    private String editcontent;
    private int uplineseq;
    private int olduplineseq;
    private String parentpkid;
    private int bomqty;
    private Date manufacturecycle;
    private String llc;
    private String factorycodepkid;
    private String vinrulepkid;
    private String optimisticlockfield;
    private String cardgenerationmode;
    private String apeffectiveresult;
    private String tenancypkid;
    private String tenancyid;
    private String isprocesscalculation;
    private String isstandardtime;
    private String customerid;
    private String splitmode;
    private List<ManubillDetaildtos> manubill_Detaildtos;

    public InsManuBillsDTO(ProdOrderDTO dto){
        this.pkid = Integer.valueOf(dto.getOrderId());
//        this.factoryid = "Z01YQJ";
        this.factoryid = "2040";
        this.remark = dto.getRemarks();
        this.submitdate = DateUtil.format(new Date(),"yyyy-MM-dd HH:mm:ss");
    }
}
